<?php Configure::write('debug', 0); ?>
<ul>
<?php
foreach($searchResults as $s){
	print '<li><a href="tasks/edit/'.$s['Task']['id'].'" ';
	if($s['Type']['id'] == $settings['task_type_finished']) print 'class="' . CSS_TASK_FINISHED . '"';
	elseif($s['Type']['id'] == $settings['task_type_deleted']) print 'class="' . CSS_TASK_DELETED . '"';
	print '>';
	print $s['Task']['task'];
	print '</a></li>';
	}
?>
</ul>